package com.flycms.module.cms.dao;

import com.flycms.module.cms.model.Order;
import com.flycms.module.cms.param.OrderParam;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository(value = "cmsOrderDao")
public interface OrderDao {

	int insertSelective(Order order);

	int delete(long id);

	Order queryByPk(long id);

	List<Order> page(@Param("param") OrderParam param,
					 @Param("index") Integer index,
					 @Param("size") Integer size);

	void send(@Param("id") Long id);

	int count(@Param("param") OrderParam param);
}
 